package com.liu.annotation_IOC;

import com.liu.B;
import com.liu.C;

/**
 * @Author: 刘浩然
 * @Date: 2021/6/21 17:49
 */
@CzyComponent
public class A {

    public A(){
         System.out.println("A 无参构造器被调用了");
    }
   @CzyBean
    public static B createBObject(){
        System.out.println("A的静态方法createBObject被调用了");
        return new B();
    }

   @CzyBean
    public C createCObject(){
        System.out.println("A的实例方法 createCObject被调用了");
        return new C();
    }
}
